<?php

class Reservations_QuickSuccessView extends SrsReservationsBaseView
{
	public function executeHtml(AgaviRequestDataHolder $rd)
	{
		$route = 'reservation.' . ($this->user->hasCredential('reservations.add') ? 'add' : 'request');

		$params = array(
			'hall' => $rd->getParameter('hall'),
			'date' => $rd->getParameter('date'),
			'from' => $rd->getParameter('from'),
			'to'   => $rd->getParameter('to'),
   	);

		return $this->redirectUrl(html_entity_decode($this->genUrl($route, $params)));
 	}
}